package com.heking.commonlib;

import androidx.appcompat.app.AppCompatActivity;

import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.zhoug.common.utils.NotificationHelper;
import com.zhoug.common.utils.TimeUtils;

public class NotificationActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notification);
    }

    public void notification1(View view) {
        NotificationHelper.getInstance().sendNotification(this,null,1,"通知1",
                "我是一个通知1","内容哈哈1"+ System.currentTimeMillis(),
                R.drawable.icon_small,R.drawable.icon_large,null);
    }
    public void notification2(View view) {
        Intent intent=new Intent(this,AlphaViewActivity.class);
        PendingIntent activity = PendingIntent.getActivity(this,102,intent,PendingIntent.FLAG_ONE_SHOT);

        NotificationHelper.getInstance().sendNotification(this,null,2,"通知2",
                "我是一个通知2","内容哈哈2"+ System.currentTimeMillis(),
                R.drawable.icon_small,R.drawable.icon_firm_5_cclj,activity);

    }
    public void notification3(View view) {
        NotificationHelper.getInstance().sendNotification(this,"1",3,"通知2",
                "我是一个通知3","内容哈哈3"+ System.currentTimeMillis(),
                R.drawable.icon_small,R.drawable.icon_large,
                null);

    }
    public void notification4(View view) {
        Intent intent=new Intent(this,BitmapUtilsActivity.class);
        PendingIntent activity = PendingIntent.getActivity(this,103,intent,PendingIntent.FLAG_ONE_SHOT);

        NotificationHelper.getInstance().sendNotification(this,"1",4,"通知2",
                "我是一个通知4","内容哈哈4"+System.currentTimeMillis(),
                R.drawable.icon_small,R.drawable.icon_firm_5_cclj,
                activity);

    }
}